<?php
namespace app\erp\validate;

use think\Validate;

class Shoppingrule extends Validate
{

    protected $rule = [
        'province' => 'require',
        'city' => 'require',
        'street' => 'require',
        'contacts' => 'require',
        'phone' => 'require'
    ];

    protected $message = [
        'province.require' => '省份不能为空',
        'city.require' => '城市不能为空',
        'street.require' => '街道地址不能为空',
        'contacts.require' => '收货人不能为空',
        'phone.require' => '联系电话不能为空'
    ];

    protected $scene = [
        'edit' => []
    ];
}